package com.heatup.apt.common.dao.user;


import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.heatup.apt.model.user.UserStore;

/**
 *
 * UserStore 表数据库控制层接口
 *
 */
@Component
public interface UserStoreMapper extends AutoMapper<UserStore> {
	
	
	
	public Map<String, Object> getUserStore(@Param("userId") Integer userId);
	
	@Update({
		"update user_store set store_id=#{storeId} where user_id=#{userId}"
	})
	public int updateUserStore(@Param("storeId") Integer storeId, @Param("userId") Integer userId);


}